<%--
  Created by IntelliJ IDEA.
  User: mrchai
  Date: 2019/10/16
  Time: 15:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>

    <meta charset="utf-8">
    <title>Title</title>
    <%@ include file="libs.jsp"%>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/5.10.2/css/all.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>
</head>
<body>
    <div class="container">
        <div class="page-header">
            <h2>易购商城后台管理系统<small>添加管理员</small></h2>
        </div>
        <div class="col-md-6">
            <form class="form-horizontal" action="user/reg" method="post" >
                <div class="form-group">
                    <label for="" class="sr-only"></label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="fa fa-user"></i>
                        </div>
                        <input type="text" name="username" class="form-control" placeholder="请输入用户名">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="sr-only"></label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="fa fa-lock"></i>
                        </div>
                        <input type="text" name="password" class="form-control" placeholder="请输入密码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="sr-only"></label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="fa fa-lock"></i>
                        </div>
                        <input type="text" name="repassword" class="form-control" placeholder="请输入重复密码">
                    </div>
                </div>
<%--                <div class="form-group">--%>
<%--                    <label for="" class="sr-only"></label>--%>
<%--                    <div class="input-group">--%>
<%--                        <div class="input-group-addon">--%>
<%--                            http://--%>
<%--                        </div>--%>
<%--                        <input type="text" name="username" class="form-control" placeholder="个人主页">--%>
<%--                        <div class="input-group-addon">.com</div>--%>
<%--                    </div>--%>
<%--                </div>--%>
                <div class="form-group">
                    <label for="" class="sr-only"></label>
                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="fa fa-list"></i>
                        </div>
                        <select class="form-control" name="status">
                            <option value="0">禁用</option>
                            <option value="1">启用</option>
                        </select>
                    </div>
                </div>
                <div class="form-group text-right">
                    <button class="btn btn-primary btn-block">确认添加</button>
                </div>
            </form>
        </div>
    </div>
    <script>
        $(function(){
            if("${code}"){
                layer.alert("${msg}")
            }
        })
    </script>
</body>
</html>
